let eyeCircleDia = 50
let eyeEllipseWidth = eyeCircleDia * 0.6
let eyeEllipseHeight = eyeCircleDia
let eyeGap = 100
let eyeColor = [230, 115, 0]

function setup() {
  createCanvas(windowWidth, windowHeight);
}

function draw() {
  background(220);
  eye(windowWidth / 2, windowHeight / 2)

}

function eye(x, y) {

  let deltaX = (mouseX - windowWidth / 2) / windowWidth
  let deltaY = (mouseY - windowHeight / 2) / windowHeight
  const multiplier = 8


  fill(eyeColor)
  circle(x, y, eyeCircleDia)
  circle(x + eyeGap, y, eyeCircleDia)

  noStroke()
  fill(20)
  ellipse(x + multiplier * deltaX, y + multiplier * deltaY, eyeCircleDia * 0.5, eyeCircleDia * 0.9)
  ellipse(x + eyeGap + multiplier * deltaX, y + multiplier * deltaY, eyeCircleDia * 0.5, eyeCircleDia * 0.9)


}